package com.xyz.rok.tools.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xyz.rok.tools.model.Server;
import com.xyz.rok.tools.mapper.ServerMapper;
import com.xyz.rok.tools.service.ServerService;

import java.util.List;

@Service
public class ServerServiceImpl implements ServerService{

    @Resource
    private ServerMapper serverMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return serverMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Server record) {
        return serverMapper.insert(record);
    }

    @Override
    public int insertSelective(Server record) {
        return serverMapper.insertSelective(record);
    }

    @Override
    public Server selectByPrimaryKey(Integer id) {
        return serverMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Server record) {
        return serverMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Server record) {
        return serverMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Server> selectAll() {
        return serverMapper.selectAll();
    }
}
